package com.atguigu.singleton_prototype;

public class Book5 {
    private String name;
    private String author;

    //创建set方法，方便注入属性值
    public void setName(String name) {
        this.name = name;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

}
